/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

import br.com.ufpb.halloc.exceptions.AtualizacaoDeTurmaException;
import br.com.ufpb.halloc.exceptions.TurmaInexistenteException;
import br.com.ufpb.halloc.exceptions.TurmaVaziaException;
import br.com.ufpb.halloc.negocio.Turma;
import java.util.List;

/**
 *
 * @author Rennan
 */
public interface TurmaDAO {
    
    public void insert (Turma turma);
    
    public void delete (Turma turma) throws TurmaInexistenteException, TurmaVaziaException;
    
    public void update (Turma turma) throws AtualizacaoDeTurmaException;
    
    public Turma findID (String id) throws TurmaInexistenteException;
    
    public Turma findNome (String nome) throws TurmaInexistenteException;
    
    public int size();
    
    public List getTurmas();
}